﻿<%@ Page Language="C#" %>
<%@ Import Namespace="WebDotNet.Extensions" %>
<%@ Import Namespace="WebDotNet.Samples.WdnMicroBlog.App.Entites" %>
<script runat="server">
	public List<Entry> ViewData
	{
		get
		{
			return (List<Entry>)HttpContext.Current.Items[WebFormsExtensions.ViewDataKey];
		}
	}
</script>
<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>Microblog</title>
    <link>http://www.gravitycube.net/blog/</link>
    <description>Blog using WebDotNet.</description>
    <language>en-us</language>
    <pubDate>Thu, 9 Sep 2009 04:00:00 GMT</pubDate>
    <lastBuildDate>Thu, 9 Sep 2009 04:00:00 GMT</lastBuildDate>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <generator>WebDotNet 0.0</generator>
    <managingEditor>jesse.foster+WebDotNetMicroBlog@gmail.com</managingEditor>
    <webMaster>jesse.foster+WebDotNetMicroBlog@gmail.com</webMaster>
    <ttl>5</ttl>
    <% foreach (Entry entry in this.ViewData) { %>
        <item>
          <title><%: entry.Title %></title>
          <link>/<%: entry.Slug %></link>
          <description><%: entry.Content %></description>
          <pubDate><%: entry.CreatedOn.ToUniversalTime().ToString("r") %></pubDate>
        </item>
    <% } %>
  </channel>
</rss>